Commit 2e4cc51
committed
MEDIUM: log: use lf_rawtext for lf_ip() and lf_port() hex strings
Same as the previous commit, but for ip and port oriented values when
+X option is provided.
No functional change should be expected.
Because of this patch, we add a little overhead because we first generate
the text into a temporary variable and then use lf_rawtext() to print it.
Thus we have a double-copy, and this could have some performance
implications that were not yet evaluated. Due to the small number of bytes
that can end up being copied twice, we could be lucky and have no visible
performance impact, but if we happen to see a significant impact, it could
be useful to add a passthrough mechanism (to keep historical behavior)
when no encoding is involved.1 parent 3a3bdf1 commit 2e4cc51
1 file changed
+28
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1958 | 1958 | | |
1959 | 1959 | | |
1960 | 1960 | | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
1961 | 1964 | | |
1962 | | - | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
1963 | 1971 | | |
| 1972 | + | |
1964 | 1973 | | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
1965 | 1977 | | |
1966 | | - | |
1967 | | - | |
1968 | | - | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
1969 | 1988 | | |
| 1989 | + | |
1970 | 1990 | | |
1971 | 1991 | | |
1972 | 1992 | | |
1973 | | - | |
1974 | | - | |
1975 | | - | |
1976 | 1993 | | |
1977 | 1994 | | |
1978 | 1995 | | |
1979 | | - | |
1980 | | - | |
1981 | 1996 | | |
1982 | 1997 | | |
1983 | 1998 | | |
| |||
2024 | 2039 | | |
2025 | 2040 | | |
2026 | 2041 | | |
| 2042 | + | |
2027 | 2043 | | |
2028 | | - | |
| 2044 | + | |
| 2045 | + | |
2029 | 2046 | | |
2030 | 2047 | | |
2031 | | - | |
| 2048 | + | |
2032 | 2049 | | |
2033 | 2050 | | |
2034 | 2051 | | |
2035 | | - | |
2036 | | - | |
2037 | 2052 | | |
2038 | 2053 | | |
2039 | 2054 | | |
| |||
0 commit comments