We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 364b534 commit 0eec61eCopy full SHA for 0eec61e
1 file changed
compiler/src/modules/vm/types.rs
@@ -436,7 +436,7 @@ impl HeapPool {
436
437
pub fn alloc(&mut self, obj: HeapObj) -> Result<Val, VmErr> {
438
if let HeapObj::Str(ref s) = obj {
439
- if s.len() <= 64 {
+ if s.len() <= 128 {
440
if let Some(&idx) = self.strings.get(s) { return Ok(Val::heap(idx)); }
441
}
442
@@ -453,7 +453,7 @@ impl HeapPool {
453
};
454
455
if let HeapObj::Str(s) = self.slots[idx as usize].obj.as_ref().unwrap() {
456
- if s.len() <= 64 { self.strings.insert(s.clone(), idx); }
+ if s.len() <= 128 { self.strings.insert(s.clone(), idx); }
457
458
459
self.live += 1;
0 commit comments