Below is my code: with open(filename, 'r') as f: vectors = {} for line in f: vals = line.rstrip().split(' ') vectors[vals[0]] = vals[1:] And it got this: Process finished with exit code 137 (interrupted by signal 9: SIGKILL). How should I optimize my code? Continue reading...