#126: optimize load_bytecode, .include paths: no library/ and include/ prefix
--------------------------+-------------------------------------------------
Reporter: rurban | Type: todo
Status: new | Priority: minor
Milestone: | Component: none
Version: branch | Severity: low
Keywords: pdd30install | Lang:
Patch: | Platform: all
--------------------------+-------------------------------------------------
Currently 70 files do [[BR]]
load_bytecode "library/Stream/Sub.pir" [[BR]]
instead of [[BR]]
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.
And 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.
Releated is the optimization for stats for library files with given
extensions, so that stat("library/Stream/Sub.pir.pasm") and so on for
pbc,pasm,pir should not happen.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/126>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets