public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/2339] New: optimize out unnecessary copies and assignments
@ 2006-02-14 17:38 hunt at redhat dot com
  2007-04-04 20:15 ` [Bug translator/2339] " dsmith at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: hunt at redhat dot com @ 2006-02-14 17:38 UTC (permalink / raw)
  To: systemtap

Simple concatenations like
str = str."foo"
generate 3 strcpys and a strcat.

x = 5
first copies 5 to a temporary variable then sets x to the temporary variable.

x++
copies 1 to a temporary variable then copies x to a temporary variable, then
adds the two temp and sets x to that,

Is there anything that can be done to make this more efficient?

-- 
           Summary: optimize out unnecessary copies and assignments
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: hunt at redhat dot com


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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/2339] optimize out unnecessary copies and assignments
  2006-02-14 17:38 [Bug translator/2339] New: optimize out unnecessary copies and assignments hunt at redhat dot com
@ 2007-04-04 20:15 ` dsmith at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: dsmith at redhat dot com @ 2007-04-04 20:15 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|systemtap at sources dot    |dsmith at redhat dot com
                   |redhat dot com              |
             Status|NEW                         |ASSIGNED


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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-04 20:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-14 17:38 [Bug translator/2339] New: optimize out unnecessary copies and assignments hunt at redhat dot com
2007-04-04 20:15 ` [Bug translator/2339] " dsmith at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).