Commit 7c6cb277

7c6cb277a731Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 4 files · ~2 modified · -2 deleted

Description

Revert "lib: move the cold Proc/Method helpers out of sp_runtime.h into sp_proc.c"

This reverts commit 98e802f8. Moving the proc cluster out of sp_runtime.h and pulling sp_proc.h's structs in near the top shifted the layout of the hot inline helpers optcarrot compiles, regressing its fps by ~40 (same generated optcarrot C, ~666 -> ~625 fps via a header-only A/B). optcarrot fps is layout-sensitive and the slimming win was marginal (the user noted the compile-time gain is within noise), so the trade is not worth it.

Co-Authored-By: Claude Opus 4.8 [email protected]

Details

Commit
7c6cb277a731
Parent
4327f89d4558

MakefilemodifiedView file

@@ -238,13 +238,9 @@
238238 @mkdir -p build
239239 $(CC) -c -O2 -Wno-all $(SEC_FLAGS) -Ilib lib/sp_io.c -o build/sp_io.o
240240
241-build/sp_proc.o: lib/sp_proc.c lib/sp_proc.h lib/sp_types.h
242- @mkdir -p build
243- $(CC) -c -O2 -Wno-all $(SEC_FLAGS) -Ilib lib/sp_proc.c -o build/sp_proc.o
244-
245241 SP_RT_LIB = lib/libspinel_rt.a
246242
247-$(SP_RT_LIB): $(RE_OBJ) build/sp_bigint.o build/sp_crypto.o build/sp_pack.o build/sp_strscan.o build/sp_time.o build/sp_core.o build/sp_net.o build/sp_system.o build/sp_gc.o build/sp_fiber.o build/sp_io.o build/sp_proc.o
243+$(SP_RT_LIB): $(RE_OBJ) build/sp_bigint.o build/sp_crypto.o build/sp_pack.o build/sp_strscan.o build/sp_time.o build/sp_core.o build/sp_net.o build/sp_system.o build/sp_gc.o build/sp_fiber.o build/sp_io.o
248244 ar rcs $@ $^
249245
250246 regexp: $(SP_RT_LIB)
@@ -583,7 +579,6 @@
583579 install -m 644 lib/sp_gc.h $(SPNLDIR)/lib/
584580 install -m 644 lib/sp_fiber.h $(SPNLDIR)/lib/
585581 install -m 644 lib/sp_io.h $(SPNLDIR)/lib/
586- install -m 644 lib/sp_proc.h $(SPNLDIR)/lib/
587582 install -m 644 lib/sp_time.h $(SPNLDIR)/lib/
588583 install -m 644 lib/sp_net.h $(SPNLDIR)/lib/
589584 install -m 644 lib/*.rb $(SPNLDIR)/lib/