mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-26 12:59:05 +08:00
🚀 optimize code
This commit is contained in:
+1
-2
@@ -133,8 +133,7 @@ nas_ref builtin_split(nas_ref* local,nasal_gc& gc)
|
||||
gc.temp=nil;
|
||||
return res;
|
||||
}
|
||||
usize last=0;
|
||||
usize pos=s.find(deli,last);
|
||||
usize last=0,pos=s.find(deli,0);
|
||||
while(pos!=string::npos)
|
||||
{
|
||||
if(pos>last)
|
||||
|
||||
Reference in New Issue
Block a user