URL:
  <http://gna.org/patch/?6342>

                 Summary: Inline genlist_head()
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Thu 10 Sep 2015 06:52:52 AM EEST
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.5.2, 2.6.0, 3.0.0

    _______________________________________________________

Details:

genlist_head() is our most often called function now (in a no-client-attached
autogame at least), taking 2.44% of the execution time. It's also a
one-liner.

Inline it to cut function call overhead. Can't make it a macro (like we've
done in many similar situations) for we don't want parameter ever to get
evaluated twice.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 10 Sep 2015 06:52:52 AM EEST  Name: InlineGenlistHead.patch  Size:
3kB   By: cazfi

<http://gna.org/patch/download.php?file_id=25104>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?6342>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to