ObjFW  Artifact [e8e1d99b1a]

Artifact e8e1d99b1aff3a9d0401bf179b31a9ab79eb5ef2752015158918c8b4a1449c9c:

Ticket change [e8e1d99b1a] - New ticket [c34a429b8c] Optimize initWithContentsOfURI: with file: URIs. by js on 2022-10-20 16:41:25.
D 2022-10-20T16:41:25.381
J icomment Currently\sthis\sgoes\sthrough\sthe\s`OFURIHandler`\sfor\s`file:`.\sThis\smeans\sthe\sgeneric\scode\sis\sused\sthat\sgrows\sa\sbuffer,\swhile\s`-[initWithContentsOfFile:]`\sis\smore\soptimized\sand\sonly\sneeds\sto\sallocate\sthe\sbuffer\sonce.\sIt\swould\smake\ssense\sto\seither\sadd\sa\sspecialization\sto\sfall\sback\sto\s`-[initWithContentsOfFile:]`\son\s`file:`\sor\sto\sgeneralize\sit\sand\salways\scheck\sif\sthe\sreturned\sstream\sis\sa\s`OFSeekableStream`,\sallowing\sto\sjust\sseek\sto\sthe\send\sof\sthe\sstream\sto\sget\sits\ssize.\sHowever,\sfor\snetworked\sprotocols,\sthat\s*might*\shave\snegative\sperformance\simplications,\sso\sit\smight\sbe\ssafer\sto\sjust\sadd\sa\sspecialization\sfor\s`file:`.
J login js
J milestone none
J mimetype text/x-markdown
J priority Medium
J severity Minor
J status Open
J title Optimize\sinitWithContentsOfURI:\swith\sfile:\sURIs
J type Enhancement
K c34a429b8cd54bc99eaad51fa400932cf48db300
U js
Z 82720ce47d061a2da05e2395f554549b