chuckbinder opened a new pull request, #76: URL: https://github.com/apache/mina-ftpserver/pull/76
This change optimizes FtpIoSession by internally storing lastAccessTime as a long instead of a Date. During file transfers, lastAccessTime is updated every 4 KB, leading to frequent Date object allocations. In contrast, reads of lastAccessTime occur infrequently — typically only after FTP command execution, during idle timeout checks, or via rare administrative commands. By using a long and creating a Date only when accessed, we eliminate unnecessary object churn, significantly reducing GC overhead and memory fragmentation in high-concurrency environments. This improves throughput and scalability without affecting API compatibility. -- 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: dev-unsubscr...@mina.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org