Skip to content

Speed up BVH parsing and frame channel lookups#14

Open
FranklinTaoTao wants to merge 1 commit into20tab:masterfrom
FranklinTaoTao:perf/regex-speedup
Open

Speed up BVH parsing and frame channel lookups#14
FranklinTaoTao wants to merge 1 commit into20tab:masterfrom
FranklinTaoTao:perf/regex-speedup

Conversation

@FranklinTaoTao
Copy link
Copy Markdown

Summary

This PR improves BVH parsing and query performance by optimizing tokenization and frame/channel access.

Changes

  • Replace character-by-character parsing with regex-based line/token splitting.
  • Parse frame component values into floats once during tokenization.
  • Add joint/channel caches to avoid repeated tree scans and channel index recalculation.
  • Update frame accessors to return already-parsed float values directly.

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.

1 participant