Skip to content

cgen cache tiny changes #1

Open
AlecTroemel wants to merge 46 commits into
pepe:mainfrom
AlecTroemel:cgen-cache-tweaks
Open

cgen cache tiny changes #1
AlecTroemel wants to merge 46 commits into
pepe:mainfrom
AlecTroemel:cgen-cache-tweaks

Conversation

@AlecTroemel

Copy link
Copy Markdown

Probably wont spend too much more time on this until after the weekend, but thought I'd show what I got from hacking on your branch.

  • removed rogue (print-result) line in stress test
  • moved built cache.c to inside src dir
  • switched ecs.janet to use the c lang cache

NOTE: Theres a bug somewhere in cache/clear, I get this when running the stress test

> janet test/performance/stress-test.janet
lets create components and systems

lets create a ton of entites
:a
error: expected iterable type, got 1.86519e-316
  in cache/clear
  in create-entities [test/performance/stress-test.janet] on line 48, column 1
  in _thunk [test/performance/stress-test.janet] (tailcall) on line 49, column 14

Nothing stands out as the obviously culprit.

AlecTroemel and others added 30 commits July 27, 2022 22:38
no longer need to expose the sparse set in junk-drawer.janet
Some code design changes:
- remove upscopes
- do not quote result arrays
- change quasiquote ~ to quote ', where it is not needed
- make ALPHABET constant
- change log prints from pp to print and add final one
refactor stress test macros
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