Wireshark-commits: [Wireshark-commits] master 98cda1b: Load environment vars to globals for efficen

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 04 Sep 2019 12:32:02 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=98cda1bf46fb262dbfd1865cf131a23504a41cec
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

98cda1b by Anders Broman (anders.broman@xxxxxxxxxxxx):

    Load environment vars to globals for efficency.
    
    These environment variables are read very frequently, read them once to
    globals for performance improvment.
    
    Change-Id: I4f05a5edca85b370674cc5f85fce40bd1af695cb
    Reviewed-on: https://code.wireshark.org/review/34449
    Petri-Dish: Anders Broman <a.broman58@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  f2162a1   Qt: fix compilation for enabled_protocols_model.
     add  98cda1b   Load environment vars to globals for efficency.


Summary of changes:
 epan/capture_dissectors.c    |  2 +-
 epan/dissectors/packet-rpc.c |  4 ++--
 epan/epan.c                  | 22 ++++++++++++++++++++++
 epan/epan.h                  | 10 ++++++++--
 epan/expert.c                |  2 +-
 epan/packet.c                | 26 +++++++++++++-------------
 epan/proto.c                 |  4 ++--
 7 files changed, 49 insertions(+), 21 deletions(-)