On 2013/01/16 12:19, Denis Krjuchkov <de...@crazydev.net> wrote:
> 16.01.2013 17:00, Max Kellermann ??????????:
> >What kind of path name would this class represent - MPD's internal
> >path names (always narrow), or the external OS path names (sometimes
> >wide)?
> 
> This would contain OS path names.

Which would add useless overhead to non-Windows.  MPD's internal path
names are always const char* (currently), and stuffing that into a
std::string will always allocate memory.  There's no optimization for
that.

(C++11 will only help with passing the temporary instances around, but
will not help with construction overhead.)

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to