ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* luaotfload
@ 2019-04-12 13:17 Herbert Voss
  2019-04-12 15:34 ` luaotfload Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Voss @ 2019-04-12 13:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello all,

If I run the following document on a 8 GByte RAM Linux machine.
It takes more than 30 minutes until luaotfload has build
the cache for Sparks-Dotline-Medium.otf. If I run another
Program in the background that it never ends (too less memory).
On my Mac the first run with context (upcoming TL2019) needs 9.5 Gbyte
memory and nearly 100% CPU load to scan the Sparks-Dotline font.
This one is, of course, 400 kB big, but why do we need
more than 8 GByte Ram??

The font files are here:

http://tug.org/~hvoss/Sparks-Bar-Medium.otf
http://tug.org/~hvoss/Sparks-Dotline-Medium.otf

-rw-r--r-- 1 voss voss  34412 Apr 11 18:54 Sparks-Bar-Medium.otf
-rw-r--r-- 1 voss voss 403776 Apr 11 18:54 Sparks-Dotline-Medium.otf




\definefont[sparkBarMedium][file:Sparks-Bar-Medium.otf:mode=node;+calt]
\definefont[sparkDotlineMedium][file:Sparks-Dotline-Medium.otf:mode=node;+calt]

\starttext
Text 
{\sparkBarMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} Text

Text 
{\sparkDotlineMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} 
Text
\stoptext


Herbert
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: luaotfload
  2019-04-12 13:17 luaotfload Herbert Voss
@ 2019-04-12 15:34 ` Hans Hagen
  2019-04-12 15:57   ` luaotfload Herbert Voss
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2019-04-12 15:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Herbert Voss

On 4/12/2019 3:17 PM, Herbert Voss wrote:
> Hello all,
> 
> If I run the following document on a 8 GByte RAM Linux machine.
> It takes more than 30 minutes until luaotfload has build
> the cache for Sparks-Dotline-Medium.otf. If I run another
> Program in the background that it never ends (too less memory).
> On my Mac the first run with context (upcoming TL2019) needs 9.5 Gbyte
> memory and nearly 100% CPU load to scan the Sparks-Dotline font.
> This one is, of course, 400 kB big, but why do we need
> more than 8 GByte Ram??

- the cpu load is puzzling: assuming that you have multiple cores, 
luatex will only use one core

- the 30 min on linux is probably due to swapping

- the 8 gig in general is a side effect of the way this font is using 
pair positioning (half a billion pairs due to classes where most pairs 
are dummies)

> The font files are here:
> 
> http://tug.org/~hvoss/Sparks-Bar-Medium.otf
> http://tug.org/~hvoss/Sparks-Dotline-Medium.otf

i hacked a faster solution for such fonts (now I need some 25 sec for 
the initial caching so probably less on your machine and < 0.1 sec for 
loading the cached font)

> -rw-r--r-- 1 voss voss  34412 Apr 11 18:54 Sparks-Bar-Medium.otf
> -rw-r--r-- 1 voss voss 403776 Apr 11 18:54 Sparks-Dotline-Medium.otf

These make a pretty good case for using proper drawing package,

> \definefont[sparkBarMedium][file:Sparks-Bar-Medium.otf:mode=node;+calt]
> \definefont[sparkDotlineMedium][file:Sparks-Dotline-Medium.otf:mode=node;+calt] 
> 
> 
> \starttext
> Text 
> {\sparkBarMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} Text
> 
> Text 
> {\sparkDotlineMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} Text 
> 
> \stoptext
> 
> 
> Herbert
> ___________________________________________________________________________________ 
> 
> If your question is of interest to others as well, please add an entry 
> to the Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________ 
> 


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: luaotfload
  2019-04-12 15:34 ` luaotfload Hans Hagen
@ 2019-04-12 15:57   ` Herbert Voss
  2019-04-12 16:05     ` luaotfload Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Voss @ 2019-04-12 15:57 UTC (permalink / raw)
  To: ntg-context

Am 12.04.19 um 17:34 schrieb Hans Hagen:
>
>> The font files are here:
>>
>> http://tug.org/~hvoss/Sparks-Bar-Medium.otf
>> http://tug.org/~hvoss/Sparks-Dotline-Medium.otf
>
> i hacked a faster solution for such fonts (now I need some 25 sec for 
> the initial caching so probably less on your machine and < 0.1 sec for 
> loading the cached font)
>

thanks,
will the hack be available?

Herbert


>> -rw-r--r-- 1 voss voss  34412 Apr 11 18:54 Sparks-Bar-Medium.otf
>> -rw-r--r-- 1 voss voss 403776 Apr 11 18:54 Sparks-Dotline-Medium.otf
>
> These make a pretty good case for using proper drawing package,
>
>> \definefont[sparkBarMedium][file:Sparks-Bar-Medium.otf:mode=node;+calt]
>> \definefont[sparkDotlineMedium][file:Sparks-Dotline-Medium.otf:mode=node;+calt] 
>>
>>
>> \starttext
>> Text 
>> {\sparkBarMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} 
>> Text
>>
>> Text 
>> {\sparkDotlineMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} 
>> Text
>> \stoptext
>>
>>
>> Herbert
>> ___________________________________________________________________________________ 
>>
>> If your question is of interest to others as well, please add an 
>> entry to the Wiki!
>>
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________ 
>>
>
>

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: luaotfload
  2019-04-12 15:57   ` luaotfload Herbert Voss
@ 2019-04-12 16:05     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2019-04-12 16:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Herbert Voss

On 4/12/2019 5:57 PM, Herbert Voss wrote:

> will the hack be available?
I just uploaded new betas

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-12 16:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-12 13:17 luaotfload Herbert Voss
2019-04-12 15:34 ` luaotfload Hans Hagen
2019-04-12 15:57   ` luaotfload Herbert Voss
2019-04-12 16:05     ` luaotfload Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).