Its doubtful that SL would have stood a chance against the barbaric Turks or even the Arabs.
The Portuguese never had huge armies and thats why the Lankans were able to protect their island
against the Portuguese. But the Turks and the Arabs had much bigger armies than the Portuguese.
And unlike the Portuguese the uncivilized Turks and Arabs were more ruthless and were famous for
slaughtering the civilians of the defeated enemies. They would have turned Lanka into a graveyard.
Its because of the Pratihara Dynasty and Rashtrakuta Dynasty which protected whole India and Sri lanka
against the Arab invaders and the Vijayanagara Empire and the Maratha Empire which defeated the Turkic and
Mughal invaders that Sri Lanka never had to suffer unspeakable atrocities like Persia, Afghanistan and Pakistan
did in the past.