But Halep refused to condemn her rival, saying after the match: "She always does it, I'm used to it."
Gamesmanship or not, the break did wonders for Sharapova as she started the third on fire, taking a 3-0 lead.
She went on to win the set 6-3 and claim the two hour and 45-minute epic, sparking an outpouring of emotion as she collapsed to her knees and broke down in tears.
"You try and think it's another day, another opportunity but it was so much more," Sharapova said.
"You never know how you are going to feel until match point but you figure it's all worth it."
Sharapova, who needed a wildcard to get into the tournament she won in 2006 after her world ranking slumped to 146, told her critics that she had no intention of giving up on her career.
"Behind this little black dress and the Swarovski crystals, there is a girl with a lot of grit and she's not going anywhere."
That was a reference to the eye-catching all-black and sequined playing gear she was wearing for the occasion. The crystals were a perfect teaser for the TV cameras for the night session on Arthur Ashe stadium where her record under the lights now stands at 18-0.
"It's prime time baby!" she said with a smile. "Sometimes you wonder why you put in all the hard work - this is exactly why."
Sharapova ended with 60 winners and 64 unforced errors and converting just five of her 22 break opportunities.
"Simona and I have so much respect for each other," she said. "It's always tough. I knew I would have to work for it."
Halep blinked at the end of the hour-long first set, double-faulting to face a break point, then watching as Sharapova punished a second serve with a forehand return winner. That was Sharapova's sixth return winner and she would finish with 14, more than enough to counter her seven double-faults.
It was quickly 4-1 for Sharapova in the second set and she held a break point there to allow her to go up 5-1 and serve for the victory. But she couldn't convert it. Then, only then, did Sharapova struggle for a bit. Her footwork was a bit off. Her forehand lost its way. She would end up losing that game and the next four, too, as Halep managed to force a third set.
But with the outcome in the balance, Sharapova once again looked as if she had never been away. She raced ahead 3-0 in the third, then 5-2. And this time, she did not let Halep back in, improving to 11-0 in first-round matches in New York.