← Back to team overview

kicad-developers team mailing list archive

Re: Strokefont change from std::deque to std::vector

 

Jeff,

I believe this change is related to the out of memory error in Eeschema
that JP reported after the CJK fonts were added (see list messages:
https://www.mail-archive.com/kicad-developers@xxxxxxxxxxxxxxxxxxx/msg36655.html
)

-Ian

On Tue, 3 Dec 2019, 00:29 Jeff Young, <jeff@xxxxxxxxx> wrote:

> Hi Seth,
>
> What was the reason for the change from std::deque to std::vector?
> Building the stroke font is now accounting for 50% of document load time (I
> *think* because we’re using a 2D vector so that any resize of any
> constituent vector has to reallocate the whole shebang).
>
> We also load the font twice, which is something I’ll look at fixing
> irrespective of the above.
>
> Thanks,
> Jeff.
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>

References