
- These files may contain stuff to reuse in newsfc:

	sfc/:
	integral_tools.py
	sign_on_basis.py
	
	sfc/optimize:
	cse.py
	deps.py
	horner.py
	optimize.py


- When code generation is stable, implement code cache in generate_code for each class.
  This can remove the overhead of generating the same element code over and over.

def __code_cache_concept():
     # TODO: Look up signature in code cache (just use directory as "database"?)
    code_cache_dir = ""
    code_cache = {}
    if signature in code_cache:
        hfilenames, cfilenames = code_cache[signature]
        for f in chain(hfilenames, cfilenames):
            shutil.copyfile(os.path.join(code_cache_dir, f), f)
    else:
        # Generate code!
        hfilenames, cfilenames = generate_code(form, options)

        # TODO: Copy files to code cache
        hfilenames, cfilenames = code_cache[signature]
        for f in chain(hfilenames, cfilenames):
            shutil.copyfile(f, os.path.join(code_cache_dir, f))
        code_cache[signature] = (hfilenames, cfilenames)
