wduquette / molt

Embeddable TCL Interpreter for Rust applications
BSD 3-Clause "New" or "Revised" License
103 stars 12 forks source link

Use OnceCell for Value string_rep #40

Closed wduquette closed 4 years ago

wduquette commented 4 years ago

This pull request revises the internals of the Value type. The string_rep is now contained within a OnceCell, to minimize the access costs on subsequent reads. Only the data_rep is now contained in a RefCell.