[base] Compute MD5 checksums only if explicitly requested.
This improves profiling accuracy. * src/base/ftobjs.c (FT_Render_Glyph_Internal): Implement it.
This commit is contained in:
parent
6de2a355ff
commit
e03214e166
|
@ -1,3 +1,11 @@
|
||||||
|
2015-10-15 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[base] Compute MD5 checksums only if explicitly requested.
|
||||||
|
|
||||||
|
This improves profiling accuracy.
|
||||||
|
|
||||||
|
* src/base/ftobjs.c (FT_Render_Glyph_Internal): Implement it.
|
||||||
|
|
||||||
2015-10-14 Werner Lemberg <wl@gnu.org>
|
2015-10-14 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
[base] Use `FT_' namespace for MD5 functions (#42366).
|
[base] Use `FT_' namespace for MD5 functions (#42366).
|
||||||
|
|
|
@ -4167,6 +4167,16 @@
|
||||||
#undef FT_COMPONENT
|
#undef FT_COMPONENT
|
||||||
#define FT_COMPONENT trace_bitmap
|
#define FT_COMPONENT trace_bitmap
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Computing the MD5 checksum is expensive, unnecessarily distorting a
|
||||||
|
* possible profiling of FreeType if compiled with tracing support. For
|
||||||
|
* this reason, we execute the following code only if explicitly
|
||||||
|
* requested.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* we use FT_TRACE3 in this block */
|
||||||
|
if ( ft_trace_levels[trace_bitmap] >= 3 )
|
||||||
|
{
|
||||||
/* we convert to a single bitmap format for computing the checksum */
|
/* we convert to a single bitmap format for computing the checksum */
|
||||||
if ( !error )
|
if ( !error )
|
||||||
{
|
{
|
||||||
|
@ -4201,6 +4211,7 @@
|
||||||
|
|
||||||
FT_Bitmap_Done( library, &bitmap );
|
FT_Bitmap_Done( library, &bitmap );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#undef FT_COMPONENT
|
#undef FT_COMPONENT
|
||||||
#define FT_COMPONENT trace_objs
|
#define FT_COMPONENT trace_objs
|
||||||
|
|
Loading…
Reference in New Issue