Skip to content

Cache decoded string values#10

Merged
uesleibros merged 1 commit into
vbacollective:mainfrom
iDavi:agent/cache-decoded-values
Jul 9, 2026
Merged

Cache decoded string values#10
uesleibros merged 1 commit into
vbacollective:mainfrom
iDavi:agent/cache-decoded-values

Conversation

@iDavi

@iDavi iDavi commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a lazy late-bound cache for escaped string values
  • clear the cache whenever a document is reloaded or destroyed
  • keep raw-string APIs unchanged

Why

Repeated typed reads of one escaped string repeated the slice, escape scan, and unescape work. The cache retains decoded values only after the first escaped read.

Validation

  • inspected the cache lifecycle and repeated-read branches statically
  • no VBA runtime or test suite is available in this environment

Closes #5

@uesleibros uesleibros marked this pull request as ready for review July 9, 2026 22:32
@uesleibros uesleibros merged commit 7183920 into vbacollective:main Jul 9, 2026
1 check passed
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.

perf(GetRawValue): cache decoded string values for repeated typed reads

2 participants