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

Use Doubles for Pixel Representation #16

Open
viluon opened this issue Mar 6, 2017 · 1 comment
Open

Use Doubles for Pixel Representation #16

viluon opened this issue Mar 6, 2017 · 1 comment

Comments

@viluon
Copy link
Owner

viluon commented Mar 6, 2017

Profiling has shown possibilities for an increase in performance and a major decrease in memory usage when using doubles instead of tables for pixel representation. Certain checks, such as the recently implemented (but not yet pushed) #14 are no longer relevant, as generated doubles are actually equal if their "arguments" are equal. Doubles also mean much less stress on the garbage collector.

This change means a major overhaul of desktox.buffer. To fix #10, we will actually only need to implement a small set of :import()able methods. Buffers will be able to act both in pixel-perfect and terminal ways, and will easily switch between the two without any constructor calls.

@viluon
Copy link
Owner Author

viluon commented Mar 14, 2017

To fix #10, we will actually only need to implement a small set of :import()able methods.

Moreover, one can use the pixel-perfect methods for caching common pixels and thus avoiding some pixel creation operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant