Home > Uncategorized > Started converting to Unicode

Started converting to Unicode

The bad news is, zkanji will probably take up around 15MB more space in memory than before, for users with no user dictionaries. This is just an estimate, but it can’t be much worse hopefully. Still the program already eats 60MB when it’s running (stroke order included), which can be significant for users with 512 or 256MB memory. On the positive side, I might be able to keep the stroke order diagrams out of memory, and only load those that were last viewed or are shown at the moment. Currently the stroke order seems to take up almost 32MB space when loaded, so if I could get rid of that, it would significantly reduce the memory usage even with Unicode.

Advertisements
Categories: Uncategorized
  1. Funbit
    April 4, 2011 at 6:04 pm

    If you’re going to find a way to get rid of the memory required for keeping stroke order db – please add an option to disable that and make zKanji as fast as possible 🙂 Because I’m sure that most of people have 2gb+ now.. ( I have 8 O:-)

  2. April 4, 2011 at 6:48 pm

    I don’t think there would be any problem with speed. The full example sentences data is not loaded into memory either, only 1MB of it, and it has to be decompressed all the time while reading, yet it’s still fast.

    I only needed to keep the full stroke order data in memory, because otherwise it would have been difficult to edit. You wouldn’t notice the difference.

  3. April 4, 2011 at 11:38 pm

    The first results are in:
    single-byte zkanji: 49MB
    Unicode zkanji: 57MB

    Not as bad as I thought. (Both without stroke order or example sentences data and without any user files.)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: