# Efficiency SAGE vs GAP

I created a code in GAP and recently adapted it to run in Sage. Since I'm not familiar with coding in Sage, my code is somewhat of a "Frankenstein," with some parts using GAP functions and others using Sage functions. The GAP portion of the code handles linear algebra functions (vector spaces, linear maps, kernels of these maps and basis).

My question is: would the code be more efficient if it were implemented entirely in Sage? Or do Sage and GAP perform this basic computations in the same way, making the choice of language (or functions calling) irrelevant in this case?

It'd be speculative to say anything without seeing an actual code.

Sage uses some linear algebra packages that are designed to be fast, but it's hard to know if they are faster than GAP for the particular things you're doing. It might be worth trying it in Sage, or at least trying a few sample calculations, along with timings.