policies

(C) which heap policies are most often used?

I have heard that 'better-fit' is pretty commonly used, but I don't seem to read much about it online. What are the most commonly used / thought to be the most efficient policies used by heap allocators. (I admit my vocabulary may be flawed; when I say 'policy' i mean things such as 'best fit,' 'first fit,' 'next fit,' etc) Edit: I am ...

Problem with Policies

#include "stdafx.h" #include <exception> template<class T> class NoCheck; template<class T> class EnforceNotNull { public: //EnforceNotNull(const NoCheck<T>&){}//<<-----If this is uncommented it works static void Check(T* p) { class NullPtrException : public std::exception { }; if (!p) ...

Moving large swf to S3 causes security issues

I have inherited a website which is build entirely in Flash and the main swf is 4.5MB large (ouch!). As you might guess this has caused a large hosting bill for my client. To solve the issue somewhat I want to move this monolithic swf to Amazon S3, however, this is causing security issues. This is how the larget swf is currently being ...