lkml.org 
[lkml]   [2017]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectseq_file optimization?
From
Date
About this commit in mm:

---------------------------------------------------
commit c1aca87fb3f84a813fb3dda656bbee583c9c87a3
Author: Alexey Dobriyan <adobriyan@gmail.com>
Date:   Fri Jun 30 11:02:04 2017 +1000

    fs/seq_file.c: delete small-value optimization
    
    num_to_str() optimizes printing small integers [0..9], so the same check
    higher in callchain is unnecessary.
---------------------------------------------------

Is removing this optimization really the same speed?

I don't think so.

The num_to_str call still does multiple moves of
memory to the output, this is a single byte copy.

\
 
 \ /
  Last update: 2017-07-01 04:49    [W:0.038 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site