Ticket #126 (closed todo: wontfix)
optimize load_bytecode, .include paths: no library/ and include/ prefix
Reported by: | rurban | Owned by: | rurban |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | none | Version: | branch |
Severity: | low | Keywords: | pdd30install |
Cc: | Language: | ||
Patch status: | rejected | Platform: | all |
Description (last modified by rurban) (diff)
Currently 70 files do
load_bytecode "library/Stream/Sub.pir"
instead of
load_bytecode "Stream/Sub.pir"
Similar with .include
The library search path for load_bytcode has first the ${libdir}/library, and then ${libdir} Similar for .include with ${libdir}/include and then ${libdir}.
This ticket is for discussion to optimize away the superfluous "library/" and "include/" prefixes. It will save 3 stats - every extension is also tried on failure, even we if give an extension.
This is similar to TT#123, but just optional, TT#123 is mandatory.
2nd) load_bytecode "Stream/Sub.pir" should be changed to load_bytecode "Stream/Sub", because we compile it to pbc, but the pir is picked up. The library search will find the best extension.
See also TT #127 for the extension optimization.