wduquette / molt

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

Value refactor #37

Closed wduquette closed 4 years ago

wduquette commented 4 years ago

This pull request refactors the Value type to use a single Rc<RefCell<_>> at the top-level rather than having two RefCell<_> fields at the top-level. This should make Value more efficient to share and clone, and should speed up data access since there's only one RefCell<_> to borrow.