Skip to content

refactor: use lua_pushliteral instead of lua_pushstring#354

Merged
psychon merged 1 commit intolgi-devs:masterfrom
cnjhb:literal
Mar 5, 2026
Merged

refactor: use lua_pushliteral instead of lua_pushstring#354
psychon merged 1 commit intolgi-devs:masterfrom
cnjhb:literal

Conversation

@cnjhb
Copy link
Contributor

@cnjhb cnjhb commented Mar 5, 2026

For string literals, we should use lua_pushliteral.
lua_pushliteral is likely faster for string literals. At the very least, it saves one strlen call.

@psychon psychon merged commit a858212 into lgi-devs:master Mar 5, 2026
15 checks passed
@psychon
Copy link
Collaborator

psychon commented Mar 5, 2026

Thanks!

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