Optimize Memory allocation #2

Open
opened 2024-07-12 09:49:07 +02:00 by xqtc · 0 comments
Owner

This issue remains open for now, and get's expanded with time

  • Move to Arc<[Token]> as return type in Lexer::get_tokens()
    • When cloned, only memory for a pointer and len is allocated resulting in cheap O(1) clone
    • Fixed by 6ab52a5f66
This issue remains open for now, and get's expanded with time - [x] Move to `Arc<[Token]>` as return type in `Lexer::get_tokens()` * When cloned, only memory for a pointer and `len` is allocated resulting in cheap O(1) clone * Fixed by 6ab52a5f66
xqtc added the
Kind/Enhancement
label 2024-07-12 09:52:37 +02:00
xqtc changed title from Optimize Stack Memory allocation to Optimize Memory allocation 2024-07-12 10:22:55 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: xqtc/glsl-lexer#2
No description provided.