Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite-based implementation for when static size exceeds Java limit #3

Open
nicolas-raoul opened this issue Mar 29, 2012 · 0 comments

Comments

@nicolas-raoul
Copy link
Owner

Doing a test with many fonts, I ran into a Java limitation:

"The code for the static initializer is exceeding the 65535 bytes limit"

So, outputting data as a static Java class is convenient when possible, but with many fonts it becomes impossible.

One way to handle many fonts could be an SQLite (or other) database file, to embed in the application, that would be read at first use.

The same database format could be used for issue 2.

We need a database with those characteristics:

  • small size overhead (kb used even when there is no data), but not necessarily very compact (kb used per kb of actual data)
  • fast when reading, not necessarily fast when writing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant