Winbloze Notepad Grabs Space
Results 1 to 4 of 4

Thread: Winbloze Notepad Grabs Space

  1. #1
    Senior Member
    Join Date
    Mar 2002
    Posts
    442

    Winbloze Notepad Grabs Space

    Hmmm,
    This is another reason why windows=>bloze.

    You have to be able to understand binary very well to follow this.

    In the notepad, each AlphaNumeric character or symbol is suplied as 1 byte. This is written in hex as two 16 digit places 0-f/0-f which is stored as one 8 bit number in binary. Therefore if you have a text file that contains the information "0123456789" it will be stored in a space of 10 bytes and is written in hex as "30 31 32 33 34 35 36 37 38 39" respectively. This would all make sense, but the notepad in windbloze is limited to the size of 8,192 bytes, so even if the file contains just a space " " it will be stored as 8,192 bytes. This file would also be able to hold 8,192 AlphaNumeric characters or symbols.

    Now the screwy part comes after that boundary is broken.

    If a text file contains 8,193 AlphaNumeric characters or symbols it would seem logical to use instead of the 13 bit 8,192 possibility, a 14 bit 16,384 possibility binary number, but the notepad uses 2, 13 bit numbers instead of a single 14 bit number. {If this is not making sense look at this, the notepad stores it as 2 {0000000000000 0000000000000} 13 bit numbers, but in you can store the same amount of information in a single 14 bit number {00000000000000}} The notepad coninues to use this disgusting process all the way until wordpad kicks in. If a file contains 32,769 AlphaNumeric characters, instead of using a single 16 bit number it uses it uses 5 13 bit numbers. {This example the equivilant of using this{00000000000000000000000000000000000000000000000000000000000000000} instead of this {0000000000000000} to store the information.} As this process continues, the notepad grabs more and more space for a smaller and smaller source.

    To conlude, I am currently writing a new notepad that uses higher bits to store AlphaNumeric characters instead of conescutive 13 bit numbers. When I am finished writing it I will post it here at AO. This will cut down the size of big text documents and text libraries like the multiple ones I have by about 1/2 the size I would be willing to bet.

  2. #2
    AO Curmudgeon rcgreen's Avatar
    Join Date
    Nov 2001
    Posts
    2,716

    Thumbs up

    Are you sure this isn't a cluster size issue with
    the windows file system rather than notepad?
    I came in to the world with nothing. I still have most of it.

  3. #3
    Senior Member
    Join Date
    Mar 2002
    Posts
    442
    I am positive, it has nothing to do with the file system, the same thing happens on Fat 32/Fat 16, I already tested it. And I was looking at how much memory the program actually grabs and how much it saves to the disk. It is all correct, the notepad is where the fault is. If you do not believe me, go boot up winbloze and check it out.

  4. #4
    AO Curmudgeon rcgreen's Avatar
    Join Date
    Nov 2001
    Posts
    2,716

    Thumbs up

    I created a one byte file with notepad, and checked its
    properties.It said 16384 bytes used.
    But when I copied it to a 1440k floppy,
    it said 512 bytes used.

    The cluster size on my hard drive is 16k
    and on a floppy is 512 bytes.
    I came in to the world with nothing. I still have most of it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •