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

Reduce memory consumption #104

Merged
merged 2 commits into from
Nov 13, 2022
Merged

Conversation

jandelgado
Copy link
Owner

@jandelgado jandelgado commented Nov 13, 2022

instead of storing the full 32 bit timestamp to track the last time, when a JLed object was updated, we now only store the lower 8 bits of the timestamp, reducing memory consumption by 3 bytes. Also the state management is streamlined.

@coveralls
Copy link

coveralls commented Nov 13, 2022

Coverage Status

Coverage increased (+0.2%) to 95.074% when pulling 1cb9daa on reduce_memory_consumption_in_time_check into 6a0e1d2 on master.

by only using the lower 8 bits of the uint32_t timestamp (millis)
to track time changes
@jandelgado jandelgado force-pushed the reduce_memory_consumption_in_time_check branch from a4b9a78 to 1cb9daa Compare November 13, 2022 10:49
@jandelgado jandelgado merged commit 21d64bf into master Nov 13, 2022
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

Successfully merging this pull request may close these issues.

2 participants