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:
@@ -78,7 +78,7 @@ pub fn main() anyerror!void {
|
||||
var residue: []const u8 = undefined;
|
||||
var name: []const u8 = undefined;
|
||||
|
||||
var it = mem.split(u8, line, " ");
|
||||
var it = mem.splitFull(u8, line, " ");
|
||||
while (it.next()) |property| {
|
||||
const i = mem.indexOf(u8, property, "=").?;
|
||||
const key = property[0..i];
|
||||
|
||||
Reference in New Issue
Block a user