valerybokov edited a comment on pull request #107:
URL: https://github.com/apache/pdfbox/pull/107#issuecomment-792022230


   @THausherr: "The one in TrueTypeCollection.java I don't agree. It looks kind 
of weird that two parser objects are generated but only one is used."
   Me: Actually, it depends of algorithm. If we need the same parser every 
time, then we can add one parameter instead of two to the getFontAtIndex 
method. I don't know this algorithm well, so if you think we only need one 
parser for each method (getFontByName and processAllFonts), that's ok. The goal 
is to reduce the number of memory allocations because it is slow. Therefore it 
looks strange.


----------------------------------------------------------------
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to