jerpelea opened a new pull request, #21274:
URL: https://github.com/apache/nuttx/pull/21274

   ## Summary
   
   libelf_findsymbol() read every symbol and then its name with separate file 
reads.  binfmt calls it for nx_stacksize and nx_priority (and with 
SCHED_USER_IDENTITY for nx_uid, nx_gid and nx_mode) on every exec, and most 
programs define none of them, so each call read the whole table. For a program 
with 5700 symbols that is about 23000 reads per exec; on a virtio 9P file 
system under a hypervisor it took 1.2 s.
   
   Read the symbol table and the string table into memory once and compare the 
names there.  If there is no memory for them, read one symbol at a time as 
before.
   
   ## Impact
   
   RELEASE
   
   ## Testing
   
   CI


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to