This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/2051] Use _stp_map_sortn(), via iteration-limited foreach


------- Additional Comments From fche at redhat dot com  2005-12-13 21:26 -------
This naturally ties in to iteration-limited array iteration.  To express this in
the language, one way is to extend the grammar in a way reminiscent of SQL:

foreach ([i1,i2] in ray limit N) { 
}

where N is a numeric expression evaluated at the beginning, and doesn't need to
be a literal.  The sorting +/- directives would stay as/where they are with
current rules.

How does the runtime sortn compare with sort for N approaching the map size?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |normal
           Priority|P3                          |P2
            Summary|Use _stp_map_sortn()        |Use _stp_map_sortn(), via
                   |                            |iteration-limited foreach


http://sourceware.org/bugzilla/show_bug.cgi?id=2051

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]