Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
«а не стащить ли с линукса lock-free memory allocator»
Setting HEAP_NO_SERIALIZE eliminates mutual exclusion on the heap. Without serialization, two or more threads that use the same heap handle might attempt to allocate or free memory simultaneously, which may cause corruption in the heap.class URL
{
public:
URL(const URL* context, const char* spec);
URL(const char* spec);
...
private:
bool parseURL(const char* spec, int start, int limit);
...
std::string protocol;
std::string host;
std::string domainSuffix;
int port;
std::string file;
std::string query;
std::string authority;
std::string path;
std::string userInfo;
std::string ref;
};
/*
* Summary: interface for an HTML 4.0 non-verifying parser
* Description: this module implements an HTML 4.0 non-verifying parser
* with API compatible with the XML parser ones. It should
* be able to parse "real world" HTML, even if severely
* broken from a specification point of view.
*
* Copy: See Copyright for the status of this software.
*
* Author: Daniel Veillard
*/
(\d(\d(\d)?)?\.\d(\d(\d)?)?\.\d(\d(\d)?)?\.\d(\d(\d)?)?)|(\h(\h)?\.\h(\h)?\.\h(\h)?\.\h(\h)?)
;-)
О тонкостях повышения performance на С++, или как делать не надо