performance and memory usage of different triple representations