Update all std.mem.split calls to their appropriate function
Everywhere that can now use `splitScalar` should get a nice little performance boost.
This commit is contained in:
@@ -310,7 +310,7 @@ pub fn getEnvMap(allocator: Allocator) !EnvMap {
|
||||
|
||||
for (environ) |env| {
|
||||
const pair = mem.sliceTo(env, 0);
|
||||
var parts = mem.split(u8, pair, "=");
|
||||
var parts = mem.splitScalar(u8, pair, '=');
|
||||
const key = parts.first();
|
||||
const value = parts.rest();
|
||||
try result.put(key, value);
|
||||
|
||||
Reference in New Issue
Block a user