zig/lib/std
Andrew Kelley 804b51b179 stage2: VarDecl and FnProto take advantage of TrailerFlags API
These AST nodes now have a flags field and then a bunch of optional
trailing objects. The end result is lower memory usage and consequently
better performance. This is part of an ongoing effort to reduce the
amount of memory parsed ASTs take up.

Running `zig fmt` on the std lib:
 * cache-misses: 2,554,321 => 2,534,745
 * instructions: 3,293,220,119 => 3,302,479,874
 * peak memory: 74.0 MiB => 73.0 MiB

Holding the entire std lib AST in memory at the same time:

  93.9 MiB => 88.5 MiB
2020-07-15 02:07:30 -07:00
..
atomic run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
build run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
c run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
crypto run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
debug run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
event run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
fmt std.meta.IntType -> std.meta.Int 2020-04-28 19:11:31 -06:00
fs Fix incorrect continue condition in PreopeonList 2020-07-12 21:02:33 +00:00
hash run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
heap run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
http std: don't store allocator inside of std.http.HeaderEntry 2020-07-13 00:38:59 +10:00
io update compile error tests and some doc comments 2020-07-12 00:54:07 +03:00
json run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
math run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
meta stage2: VarDecl and FnProto take advantage of TrailerFlags API 2020-07-15 02:07:30 -07:00
net Test case for tcpConnectToHost fix 2020-06-07 22:39:35 +10:00
os run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
rand ziggurat uses @truncate instead of & 0xff 2020-04-18 14:41:33 -04:00
special run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
target use typeInfo instead of hardcoded tables in std.Target 2020-07-11 20:11:20 +03:00
testing new allocator interface 2020-06-26 13:34:48 -06:00
time (breaking) std.time fixups and API changes 2020-05-24 21:40:08 -04:00
unicode Update all remaining uses of &outStream().stream 2020-04-03 12:12:23 -04:00
valgrind
zig stage2: VarDecl and FnProto take advantage of TrailerFlags API 2020-07-15 02:07:30 -07:00
array_list.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
array_list_sentineled.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
ascii.zig Creates std.ascii.control_code that contains the C0 control codes as named constants. 2020-05-16 12:46:44 -04:00
atomic.zig
base64.zig
bloom_filter.zig Add mips support to standard library 2020-04-24 15:28:55 -04:00
buf_map.zig Merge pull request #5786 from ziglang/std-hash-map 2020-07-05 21:12:20 +00:00
buf_set.zig update std lib to new hash map API 2020-07-05 21:11:42 +00:00
build.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
builtin.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
c.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
cache_hash.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
child_process.zig Map ENOTCAPABLE into error.AccessDenied instead of error.NotCapable 2020-06-30 18:21:38 +02:00
coff.zig new ArrayList API: fix everything else 2020-04-02 16:12:08 +02:00
comptime_string_map.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
crypto.zig hashing algorithms: fix logic and index out of bounds 2020-02-24 13:43:54 -05:00
cstr.zig breaking: std.mem.len no longer takes a type argument 2020-03-01 13:21:39 -05:00
debug.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
dwarf.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
dwarf_bits.zig debug: Split the DWARF stuff in its own file 2020-02-20 19:41:28 +01:00
dynamic_library.zig publicize member functions affected by #4909 2020-05-08 14:26:28 +03:00
elf.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
event.zig self-hosted libc detection 2020-02-16 13:25:30 -05:00
fifo.zig Support Reader for InStream 2020-06-09 13:36:17 -04:00
fmt.zig Added octal formatting fo fmt functions. (#5867) 2020-07-14 02:27:58 -04:00
fs.zig Merge pull request #5755 from kubkon/dir-iter-tests 2020-07-07 23:13:58 +00:00
hash.zig
hash_map.zig std: add StringHashMapUnmanaged 2020-07-13 00:34:02 +10:00
heap.zig Make allocator test functions public 2020-07-12 21:45:25 +00:00
http.zig
io.zig Support Reader for InStream 2020-06-09 13:36:17 -04:00
json.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
linked_list.zig run zig fmt on std lib 2020-05-24 10:04:09 -04:00
log.zig update compile error tests and some doc comments 2020-07-12 00:54:07 +03:00
macho.zig delete extra code, more forgiveness 2020-02-22 12:44:21 +01:00
math.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
mem.zig std: add mem.joinZ 2020-07-12 22:17:40 +00:00
meta.zig add std.meta.TrailerFlags API 2020-07-14 17:19:17 -07:00
mutex.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
net.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
once.zig std: Introduce the Once synchronization primitive 2020-04-18 15:48:32 -04:00
os.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
packed_int_array.zig Fix typo in PackedIntArray tests 2020-05-30 23:17:55 +02:00
pdb.zig Pdb.openFile use []const u8 instead of []u8 2020-06-24 22:27:30 -04:00
priority_queue.zig std.mem.dupe is deprecated, move all references in std 2020-07-04 21:40:06 +03:00
process.zig std.mem.dupe is deprecated, move all references in std 2020-07-04 21:40:06 +03:00
progress.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
rand.zig make rand function public, fixes crypto benchmark 2020-05-20 21:27:08 -04:00
rb.zig
reset_event.zig (breaking) std.time fixups and API changes 2020-05-24 21:40:08 -04:00
segmented_list.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
sort.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
spinlock.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
start.zig @asyncCall now requires an argument tuple 2020-06-24 14:07:39 +03:00
start_windows_tls.zig
std.zig std: add StringHashMapUnmanaged 2020-07-13 00:34:02 +10:00
target.zig CBE: Make C an ObjectFormat instead of a special bool (#5849) 2020-07-12 22:56:31 -04:00
testing.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
thread.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
time.zig fixed timestamp() 2020-06-01 14:43:13 -04:00
unicode.zig Add std.unicode.Utf8Iterator.peek 2020-06-18 20:35:03 -04:00
valgrind.zig short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
zig.zig self-hosted: add compare output test for new AST->ZIR code 2020-06-24 21:28:42 -04:00