Skip to content

Conversation

@alex-virodov
Copy link
Collaborator

@alex-virodov alex-virodov commented May 18, 2023

@Falcury can you PTAL? If we commit to global-only cache, I can keep it restricted mostly to libisyntax level. If we want per-isyntax cache, I need to be able to put a cache pointer in isyntax_t, and that makes things much more complicated [Edit: not much, see https://github.com/amspath/libisyntax/tree/cache-under-api-try3, very wip]. As I mentioned in (#4 (comment)), I don't see much use for per-isyntax cache, but please let me know if I'm missing something.

And you can still have no cache at all, and per-isyntax allocators if you are skipping the libisyntax layer.

I still need to figure out proper locking, so not ready for merge. Please let me know if this is a bad direction to take.

isyntax_tile_t* tile = level->tiles + j;
for (i32 color = 0; color < 3; ++color) {
isyntax_tile_channel_t* channel = tile->color_channels + color;
if (channel->coeff_ll) free(channel->coeff_ll);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be block_free...

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