Can Git back a REST API? (Part 2 - git protocols)

Running a REST API off of the Git CLI tool was slow to say the least. Can I make the API a little faster by interacting with the Git server more directly?