Speed up print_line_text.
authorGerald Combs <gerald@wireshark.org>
Wed, 29 Jun 2016 23:51:37 +0000 (16:51 -0700)
committerGerald Combs <gerald@wireshark.org>
Thu, 30 Jun 2016 19:21:04 +0000 (19:21 +0000)
commitcd1ddf6ef5c794cf135d8b36916dbdc7aae9ca57
tree73e644df7cf8b508f5c4f5eb6d9a5e4502c6ead2
parent6b152515abf075b84422d344e085891e2b76f41e
Speed up print_line_text.

isatty adds a small delay, at least on OS X. Call it only when we
allocate a stream. Do the same for our codeset check.

Change-Id: Id3a20059dbc9cf7d5db16d8d238d038b9de0ebf2
Reviewed-on: https://code.wireshark.org/review/16222
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
epan/print_stream.c
epan/print_stream.h